#ifndef BASIC_H
#define BASIC_H

  //This header should be included in every module
  //Contains basic libraries and definitions
  
  #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
  #include <pthread.h>
  #include <time.h>
  
  #define error(s) { perror(s); exit(1); }
  
  //Maximum size for data content and names of files
  #define MAX_CONTENT 1024
  #define MAX_NAME 20
  
  //Maximum sizes of data cache and content directory
  #define MAX_CACHE 5
  #define MAX_DIR 16
  
  //Maximum message size
  #define MAX_MSG 1200
  
  // Maximum size of count in listing message
  #define MAX_LISTING 56
	
	//Allow use of true and false
	enum BOOLEAN {false, true};
	
	//Debugging boolean
  extern int debug;
   
	//The socket file descriptor for this application.
	extern int socketfd; 
#endif